package test;


import com.duniptech.engine.core.modeling.Coupled;
import com.duniptech.engine.core.modeling.api.IAtomic;
import com.duniptech.engine.core.simulation.Coordinator;
import com.duniptech.engine.core.simulation.api.ICoordinator;

public class Efp2Atomic extends Coupled {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public Efp2Atomic() {
		super("Efp");
		IAtomic proc = new Processor();
		IAtomic ef = new CoupledMicroSim(new Ef());
		addComponent(proc);
		addComponent(ef);
		addCoupling(ef, Ef.out, proc, Processor.in);
		addCoupling(proc, Processor.out, ef, Ef.in);
	}
	
	public static void main(String args[]) {
		Efp2Atomic efp = new Efp2Atomic();
		ICoordinator coordinator = new Coordinator(efp);
		coordinator.simulate(Long.MAX_VALUE);
	}
}
